<template>
  <div class="home-todo-list">
    <div class="box">
      <div class="border">
        <ui-button class="item-1">
          <div class="num">
            <p class="origin">{{ qryDealData.auditNum }}</p>
            <p class="info">待审核</p>
          </div>
          <img src="@/assets/image/home/audit.png" alt="" />
        </ui-button>
      </div>
      <div class="border">
        <ui-button class="item-2">
          <div class="num">
            <p class="origin">{{ qryDealData.billNum }}</p>
            <p class="info">对账单</p>
          </div>
          <img src="@/assets/image/home/acc.png" alt="" />
        </ui-button>
      </div>
      <div class="border">
        <ui-button class="item-3">
          <div class="num">
            <p class="origin">{{ qryDealData.eleBillNum }}</p>
            <p class="info">电票签收</p>
          </div>
          <img src="@/assets/image/home/ele.png" alt="" />
        </ui-button>
      </div>
    </div>
  </div>
</template>

<script>
import systemApi from '@/api/system';
export default {
  data() {
    return {
      qryDealData: {},
    };
  },
  mounted() {
    this.refresh();
  },
  methods: {
    refresh() {
      systemApi.waitForDoingQry({}).then((res) => {
        // 模拟接口
        this.qryDealData = res.result;
      });
    },
  },
};
</script>

<style lang="scss">
.home-todo-list {
  .box {
    margin-top: 16px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    .border {
      width: 30%;
      overflow: hidden;
      border-radius: 8px;
      float: left;
      margin-right: 3%;
    }
    .item-1 {
      width: 100%;
      height: 140px;
      background: linear-gradient(180deg, #ff7d6b, #d6311a);
      border-radius: 8px;
      box-shadow: 0px 1px 10px 0px rgba(0, 21, 41, 0.07);
    }
    .item-2 {
      width: 100%;
      height: 140px;
      background: linear-gradient(180deg, #ffa36b, #d66e1a);
      border-radius: 8px;
      box-shadow: 0px 1px 10px 0px rgba(0, 21, 41, 0.07);
    }
    .item-3 {
      width: 100%;
      height: 140px;
      background: linear-gradient(180deg, #836be5, #4325ba);
      border-radius: 8px;
      box-shadow: 0px 1px 10px 0px rgba(0, 21, 41, 0.07);
    }
    img {
      width: 65px;
      height: 65px;
      margin-left: 30%;
      margin-top: 20px;
    }
    .num {
      position: relative;
      width: 60px;
      height: 60px;
      p {
        position: absolute;
        top: 0;
        left: 15px;
        width: 60px;
        height: 60px;
        text-align: center;
        color: $color-text-normal;
        &.origin {
          color: $color-text-primary;
          font-size: 60px;
          font-family: Akrobat, Akrobat-Bold;
          font-weight: 700;
          letter-spacing: 0px;
        }
        &.info {
          margin-top: 70px;
          font-size: $s14;
          text-align: center;
          color: $color-text-primary;
        }
      }
    }
  }
}
</style>
